/****************************************************************************
  From Qt Examples
****************************************************************************/

#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include "server.h"
#include <QTextEdit>
#include <QLineEdit>

namespace Ui {
    class Dialog;
}

QT_BEGIN_NAMESPACE
class QLabel;
class QPushButton;
QT_END_NAMESPACE

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = 0);

public slots:
    //void send();
    void readCMsg(QString);
    void sendServerDataToProxy();
    void connectToProxy();
    void serverStarted();

private slots:
    void on_setButton_clicked();

signals:
    void sendHardwareSpec(double, double, unsigned int, unsigned int);

private:
    Ui::Dialog *ui;
    Server server;
    //QTcpSocket* connectionD;
    QString ipAddress;
    QString proxyIP;
    QString serverData;
};

#endif
